<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="org.slf4j.Logger,org.slf4j.LoggerFactory" %>
<%	
	//设置返回码200，避免浏览器自带的错误页面
	response.setStatus(200);
	//记录日志
	Logger logger = LoggerFactory.getLogger("500.jsp");
	logger.error(exception.getMessage(), exception);
%>

<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>500 - 系统内部错误</title>
	<link rel="shortcut icon" href="${ctx}/img/favicon.ico">
	<!-- Loading Bootstrap -->
	<link href="${ctx}/css/vendor/bootstrap.min.css" rel="stylesheet">
	<!-- Loading Flat UI -->
	<link href="${ctx}/css/flat-ui.min.css" rel="stylesheet">
</head>

<body>
	<div class="container">
		<h2>500 - 系统发生内部错误.</h2>
		<p><a href="<c:url value="/"/>">返回首页</a></p>
	</div>
</body>
</html>
